package com.jiruan.invoicemanagementsystem.service;

import com.jiruan.invoicemanagementsystem.pojo.Address;
import com.jiruan.invoicemanagementsystem.util.PageHelper;

import java.util.ArrayList;

public interface IAddressService {
    //添加新的地址信息
    /*
     * 1.详细地址
     * 2.省市区
     * 3.联系电话
     * 4.是否默认
     * (注意：默认地址只有一个，当一个地址被设置成默认时，原来的默认地址要取消默认状态。)
     * 5.收件人
     * */
    boolean addNewAddress(Address address);

    //查询所有地址信息 - (全查)
    ArrayList<Address> queryAllAddress();

    public Integer updateAddressById(Address address);


    //设置默认地址
    public Integer setDefaultAddress(Address address);


    public ArrayList<Address> queryAddress(PageHelper pageHelper);

    public int queryAddressCount();
}
